home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
pcboard
/
gambler1.zip
/
GAMBLER.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1996-04-10
|
4KB
|
209 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.1O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
Integer INTEGER007
String STRING001
String STRING002
;------------------------------------------------------------------------------
GetUser
STRING002 = U_Name()
BOOLEAN001 = 0
FOpen 1, PPEPath() + PPEName() + ".DAT", 0, 2
FGet 1, STRING001
FGet 1, INTEGER003
FClose 1
DispFile PPEPath() + PPEName() + ".HDR", 0
Newlines 2
PrintLn "@X0F Timeleft: @X0E@TIMELEFT@"
Newlines 2
InputStr " @X0FHow much time do you want to bet@X0A", INTEGER001, 9, 4, "0123456789", 2048 + -32768
INTEGER004 = 1 + Random(99)
INTEGER007 = INTEGER003 + INTEGER001
DispFile PPEPath() + PPEName() + ".HDR", 0
PrintLn "@X06┌─────────────────────────────────────────────────────────────────────────────┐@X00"
PrintLn "│ @X06@POS:79@│"
PrintLn "│ @X0ENumber of Guesses: @X0F6 SELECT A NUMBER FROM 1-100 @X0ETime Left: @X0F@TIMELEFT@ @X06@POS:79@│"
PrintLn "│ @X06@POS:79@│"
PrintLn "│ @X0EGuess Number: @X0EGame Status: @X0ETime Bet: @X06@POS:79@│"
PrintLn "│ @X06@POS:79@│"
PrintLn "│ @X0EGuesses Left: @X0EWhat's Your Guess @X0EReward Time: @X06@POS:79@│"
PrintLn "│ @X06@POS:79@│"
PrintLn "└─────────────────────────────────────────────────────────────────────────────┘"
AnsiPos 74, 11
PrintLn "@X0F" + String(INTEGER007)
AnsiPos 74, 9
PrintLn "@X0F" + String(INTEGER001)
For INTEGER005 = 1 To 6
AnsiPos 24, 9
PrintLn "@X0F" + String(INTEGER005)
AnsiPos 46, 11
PrintLn " "
INTEGER006 = 7 - INTEGER005
AnsiPos 24, 11
PrintLn "@X0F" + String(INTEGER006)
AnsiPos 46, 11
InputStr "@X0A", INTEGER002, 10, 3, "0123456789", 2048 + -32768
If (INTEGER002 > INTEGER004) Then
AnsiPos 43, 9
PrintLn "@X0CTOO @X8CHIGH "
Endif
If (INTEGER002 < INTEGER004) Then
AnsiPos 43, 9
PrintLn "@X0CTOO @X8CLOW "
Endif
If (INTEGER002 == INTEGER004) Goto LABEL001
Next
AnsiPos 43, 9
PrintLn "@X8CLOSER!!! @X0F"
Delay 40
AdjTime -INTEGER001
DispFile PPEPath() + PPEName() + ".LOS", 1 + 2
Newline
PrintLn "@X0F You just lost @X8C" + String(INTEGER001) + "@X0F minutes!"
Goto LABEL002
:LABEL001
AnsiPos 43, 9
PrintLn "@X0FW@X8CINNER!!! "
Delay 1
AnsiPos 43, 9
PrintLn "W@X0FI@X8CNNER!!! "
Delay 1
AnsiPos 43, 9
PrintLn "WI@X0FN@X8CNER!!! "
Delay 1
AnsiPos 43, 9
PrintLn "WIN@X0FN@X8CER!!! "
Delay 1
AnsiPos 43, 9
PrintLn "WINN@X0FE@X8CR!!! "
Delay 1
AnsiPos 43, 9
PrintLn "WINNE@X0FR@X8C!!! "
Delay 1
AnsiPos 43, 9
PrintLn "WINNER@X0F!@X8C!! "
Delay 1
AnsiPos 43, 9
PrintLn "WINNER!@X0F!@X8C! "
Delay 1
AnsiPos 43, 9
PrintLn "WINNER!!@X0F! "
Delay 1
AnsiPos 43, 9
PrintLn "@X8CWINNER!!! "
Delay 1
Delay 30
BOOLEAN001 = 1
DispFile PPEPath() + PPEName() + ".WIN", 1 + 2
Newline
PrintLn "@X0F You have been rewarded @X8C" + String(INTEGER007) + "@X0F minutes!"
:LABEL002
FCreate 1, PPEPath() + PPEName() + ".DAT", 1, 0
If (BOOLEAN001) Then
FPutLn 1, STRING002
FPutLn 1, "0"
INTEGER004 = 0
AdjTime INTEGER007
Else
FPutLn 1, STRING001
FPutLn 1, INTEGER007
Endif
FClose 1
Newline
PrintLn "@X0F The last winner was @X0E " + STRING001
Newline
Wait
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 1 Wait
; 8 Goto
; 9 Let
; 31 PrintLn
; 5 If
; 4 DispFile
; 1 FCreate
; 1 FOpen
; 2 FClose
; 2 FGet
; 4 FPutLn
; 1 GetUser
; 2 AdjTime
; 2 InputStr
; 12 Delay
; 4 Newline
; 2 Newlines
; 19 AnsiPos
;
;
; ■ Functions used :
;
; 3 -
; 28 +
; 1 -
; 1 ==
; 2 <
; 1 <=
; 1 >
; 2 >=
; 4 !
; 2 &&
; 1 ||
; 1 Random()
; 1 U_Name()
; 6 String()
; 6 PPEPath()
; 6 PPEName()
;
;------------------------------------------------------------------------------
;
; Analysis flags : A
;
; A - Adjust online time remaining ■ 5
; Program modify the amount of online time remaining, this may
; be a way to bypass time limits
; ■ Search for : ADJTIME
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 1 For/Next
; 0 While/EndWhile
; 3 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------